//
//  BaseNavigationViewController.m
//  NewNym
//
//  Created by Gideon on 16/2/15.
//  Copyright © 2016年 LiZhenning. All rights reserved.
//

#import "BaseNavigationViewController.h"

#import "Macros.h"

#define iOS9 ([[[UIDevice currentDevice] systemVersion] floatValue] >= 9.0)

@interface BaseNavigationViewController ()
{
    UINavigationBar *navBar;
}

@end

@implementation BaseNavigationViewController

+ (void)initialize
{
    UINavigationBar *navBar;
    
    if (@available(iOS 9.0, *)) {
        
        navBar = [UINavigationBar appearanceWhenContainedInInstancesOfClasses:@[[BaseNavigationViewController class]]];
    } else {
        
        navBar = [UINavigationBar appearanceWhenContainedIn:[BaseNavigationViewController class], nil];
    }
    
    [navBar setBarTintColor:HexRGBA(0x424448, 1)];
    [navBar setTranslucent:NO];
    [navBar setTitleTextAttributes:@{NSForegroundColorAttributeName:HexRGBA(0xffffff, 1), NSFontAttributeName:[UIFont systemFontOfSize:18 * kAutoScanleX]}];
}


@end
